package uy.edu.ort.excepciones;

/**
 * Excepción al crear un archivo pdf.
 * @author 153287-154559
 */
public class PdfException extends Exception {

    private String message;
    private Throwable cause;

    public PdfException(Throwable cause, String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return "ERROR al generar pdf: " + this.message;
    }

    @Override
    public Throwable getCause() {
        return this.cause;
    }
}
